# $Id: PKGBUILD 86749 2013-03-21 21:05:35Z eric $
# Maintainer: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Wijnand Modderman <wijanand+aur@archlinux.nl>

pkgname=cksfv
pkgver=1.3.14
pkgrel=2
pkgdesc="SFV (Simple File Verification) Checker"
arch=('i686' 'x86_64')
url="http://zakalwe.fi/~shd/foss/cksfv"
license=('GPL')
depends=('glibc')
source=(http://zakalwe.fi/~shd/foss/cksfv/files/$pkgname-$pkgver.tar.gz)
md5sums=('2e15289753ea0b90b6ea86993f93b383')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make BINDIR="$pkgdir/usr/bin" MANDIR="$pkgdir/usr/share/man" install
  chmod 644 "$pkgdir/usr/share/man/man1/$pkgname.1"
}
